<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>测试前后端关联</title>
	</head>
	<body>
		<!-- <a href="https://localhost:8080/CarController/save?id=90&name=Tony">https://localhost:8080/CarController/save?id=90&name=Tony</a><br />
		<a href="https://localhost:8080/CarController/save">https://localhost:8080/CarController/save</a><br /> -->
		<!-- 用普通方法 提交Form数据 注意name属性必须和java文件里方法的参数名相同 或者对象的属性名相同 -->
		<form action="http://localhost:8080/car/gc" method="get">
			<table border="" cellspacing="" cellpadding="">
				<tr>
					<th colspan="2">gc()方法</th>
				</tr>
				<tr>
					<td>id:</td>
					<td><input name="id" type="text" /></td>此处name属性值必须和java文件里方法的参数名相同
				</tr>
				<tr>
					<td>name:</td>
					<td><input name="name" type="text" /></td>
				</tr>
				<tr>
					<td>type:</td>
					<td><input name="type" type="text" /></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="submit" value="submit" /></td>
				</tr>
			</table>
		</form>
		<form action="http://localhost:8080/car/add" method="get">
			<table border="" cellspacing="" cellpadding="">
				<tr>
					<th colspan="2">add()方法</th>
				</tr>
				<tr>
					<td>id:</td>
					<td><input name="id" type="text" /></td>此处name属性值必须和java文件里方法的参数名相同
				</tr>
				<tr>
					<td>name:</td>
					<td><input name="name" type="text" /></td>
				</tr>
				<tr>
					<td>type:</td>
					<td><input name="type" type="text" /></td>
				</tr>
				<tr>
					<td>color:</td>
					<td><input name="color" type="text" /></td>
				</tr>
				<tr>
					<td>price:</td>
					<td><input name="price" type="text" /></td>
				</tr>
				<tr>
					<td>date:</td>
					<td><input name="date" type="date" /></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="submit" value="submit" /></td>
				</tr>
				
			</table>
		</form>


		<!-- <a href="https://localhost:8080/CarController/insert/1/张三/18">https://localhost:8080/CarController/insert/1/张三/18</a><br /> -->

		<!-- <a href="https://localhost:8080/CarController/insert?id=1&name=张三&age=18">https://localhost:8080/CarController/insert?id=1&name=张三&age=18K</a><br /> -->
		<!-- <a href="http://localhost:8080/car/insert/3/jbjc/1">点我insert</a><br /> -->
		<a href="http://localhost:8080/car/get">点我get</a><br />
		<!-- <a href="http://localhost:8080/car/add?id=1">点我add</a> -->
		<a href="http://localhost:8080/car/gc?id=1&name=111">点我测试gc</a>
	</body>
</html>
